<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>局部注册</title>
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
</head>
<body>
<div id="case13-demo2">
    <app-component  v-bind:style="styleSrc"></app-component>
</div>
<script type="text/javascript">
    var case13Demo2=new Vue({
        el:"#case13-demo2",
        data:{
            styleSrc:{
                color:"red"
            }
        },
        components:{
            'app-component':{
                template:'<div>我是一个局部注册的组件</div>'
            }
        },

    })
</script>
</body>
</html>